/*****************************************************************************
*                                                *
*  Copyright (C) 2021 linliang@whu.edu.cn                         *
*                                                                            *
*  This file is part of OST.                                                 *
*                                                                            *
*  This program is free software; you can redistribute it and/or modify      *
*  it under the terms of the GNU General Public License version 3 as         *
*  published by the Free Software Foundation.                                *
*                                                                            *
*  You should have received a copy of the GNU General Public License         *
*  along with OST. If not, see <http://www.gnu.org/licenses/>.               *
*                                                                            *
*  Unless required by applicable law or agreed to in writing, software       *
*  distributed under the License is distributed on an "AS IS" BASIS,         *
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  *
*  See the License for the specific language governing permissions and       *
*  limitations under the License.                                            *
*                                                                            *
*  @file     message_serive.h                                                       *
*  @brief    对文件的简述                                                    *
*  Details.                                                                  *
*                                                                            *
*  @author   linliang                                                       *
*  @email    linliang@whu.edu.cn                                          *
*  @version  1.0.0.1(版本号)                                                 *
*  @date     2021.2.23                                           *
*  @license  GNU General Public License (GPL)                                *
*                                                                            *
*----------------------------------------------------------------------------*
*  Remark         : Description                                              *
*----------------------------------------------------------------------------*
*  Change History :                                                          *
*  <Date>     | <Version> | <Author>       | <Description>                   *
*----------------------------------------------------------------------------*
*  2021/02/23 | 1.0.0.1   | linliang     | Create file                     *
*----------------------------------------------------------------------------*
*                                                                            *
*****************************************************************************/

#ifndef __HANDLER__H
#define __HANDLER__H


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void send_EmptyMessage_Delay(void *handle,int what,int arg1,int arg2,long uptimeMillis);

void send_EmptyMessage(void *handle,int what,int arg1,int arg2);

void send_Message_Delay(void *handle,int what,int arg1,char *p,long uptimeMillis);

void send_Message(void *handle,int what,int arg1,char *p);


void remove_Messages(void *handle,int what);


void remove_ALL_Messages(void *handle);

int handler_init(void **handle,void (*cb)(int,int,int,const char *));

int handler_deinit(void **handle);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif



